{% extends 'promos/base.html' %}

{% block extra_head %}
    {{ block.super }}
    <link rel="stylesheet" href="{{ MEDIA_URL }}css/calendar.css" />
{% endblock %}

{% block title %}Promo Billboard List{% endblock %}

{% block main_content %}
<h1>{{ promo.headline }}</h1>
<div class="edit-promo-tabs">
    <div class="tab-links">
        <a href="{% url promos_promo_edit promo_id=promo.id %}" rel="promo-info">Pitch</a>
        <a href="{% url promos_promo_add_edit_point promo_id=promo.id %}" rel="promo-info" title="Geotag">Geotag</a>
        <a href="{% url promos_promo_image_list promo_id=promo.id %}">Images</a>
        <a href="{% url promos_promo_link_list promo_id=promo.id %}">Related Links</a>
        <a href="{% url promos_promo_date_list promo_id=promo.id %}">Suggested Dates</a>
        <a href="" class="active">Billboards</a>
        <a href="{% url promos_promo_detail promo_id=promo.id %}">Detail</a>
        <br class="clearboth" />
    </div>
    <div class="tab-contents">
        <div id="month_navigation">
            <p><a href='{% url promos_promo_billboard_calendar_now promo_id=promo.id %}'>current month</a></p>
            <p><a href='{% url promos_promo_billboard_calendar promo_id=promo.id,year=year,month=previous_month %}'><< previous month</a> | <a href='{% url promos_promo_billboard_calendar promo_id=promo.id,year=year,month=next_month %}'>next month >></a></p>
        </div>
    {% if billboard_qs.count %}
        {{calendar}}
    {% else %}
        <p>You haven't submitted any billboards yet.</p>
    {% endif %}
    </div>
</div>

{% endblock %}

{% block subnav %}
<h2>Links</h2>
<ul class="action-links">
    <li><a href="{% url promos_promo_list %}">Promo List</a></li>
    <li><a href="{% url promos_promo_billboard_add promo_id=promo.id%}" title="Add a Link">Add a Billboard</a></li>
    <li><a href='{% url promos_promo_billboard_calendar_now promo_id=promo.id %}'>Calendar</a></li>
 </ul>
{% endblock %}
